/* rules 表格输入框校验参数 */
import rulesMode from '@/utils/rules-validator'

const rules = {
  companyName: rulesMode.copyRequired('请填写企业名称'),
  companyAddress: rulesMode.copyRequired('请填写公司地址'),
  // uniCreditNo: [...rulesMode.copyRequired('请填写信用代码'), ...rulesMode.companyCode],
  uniCreditNo: rulesMode.copyRequired('请填写信用代码'),
  businessLicenseUrl: rulesMode.copyRequired('请上传营业执照'),
  legalName: rulesMode.copyRequired('请填写法人姓名'),
  legalIds: [...rulesMode.copyRequired('请填写法人身份证'), ...rulesMode.idCard],
  legalPhone: rulesMode.copyRequired('请填写法人手机号'),
  area: rulesMode.copyRequired('请选择对公账号所在地'),
  accountNo: rulesMode.copyRequired('请填写对公账户卡号'),
  parentBankName: rulesMode.copyRequired('请选择开户银行'),
  bankName: rulesMode.copyRequired('请选择开户支行'),
  idCardFrontUrl: rulesMode.copyRequired('请上传身份证正面'),
  idCardBackUrl: rulesMode.copyRequired('请上传身份证反面'),
}

export default rules
